home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / GXLayout.p < prev    next >
Text File  |  1996-05-01  |  9KB  |  108 lines

  1. {
  2.      File:        GXLayout.p
  3.  
  4.      Contains:    QuickDraw GX layout routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT GXLayout;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __GXLAYOUT__}
  28. {$SETC __GXLAYOUT__ := 1}
  29.  
  30. {$I+}
  31. {$SETC GXLayoutIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __GXTYPES__}
  38. {$I GXTypes.p}
  39. {$ENDC}
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  46. FUNCTION GXNewLayout(textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint): gxShape; C;
  47. FUNCTION GXGetLayout(layout: gxShape; text: UNIV Ptr; VAR styleRunCount: LONGINT; VAR styleRunLengths: INTEGER; VAR styles: gxStyle; VAR levelRunCount: LONGINT; VAR levelRunLengths: INTEGER; VAR levels: INTEGER; VAR layoutOptions: gxLayoutOptions; VAR position: gxPoint): LONGINT; C;
  48. PROCEDURE GXSetLayout(layout: gxShape; textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint); C;
  49. PROCEDURE GXDrawLayout(textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint); C;
  50. PROCEDURE GXSetLayoutParts(layout: gxShape; oldStartOffset: gxByteOffset; oldEndOffset: gxByteOffset; newTextRunCount: LONGINT; {CONST}VAR newTextRunLengths: INTEGER; {CONST}VAR newText: UNIV Ptr; newStyleRunCount: LONGINT; {CONST}VAR newStyleRunLengths: INTEGER; {CONST}VAR newStyles: gxStyle; newLevelRunCount: LONGINT; {CONST}VAR newLevelRunLengths: INTEGER; {CONST}VAR newLevels: INTEGER); C;
  51. PROCEDURE GXSetLayoutShapeParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; insert: gxShape); C;
  52. FUNCTION GXGetLayoutParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; text: UNIV Ptr; VAR styleRunCount: LONGINT; VAR styleRunLengths: INTEGER; VAR styles: gxStyle; VAR levelRunCount: LONGINT; VAR levelRunLengths: INTEGER; VAR levels: INTEGER): LONGINT; C;
  53. FUNCTION GXGetLayoutShapeParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; dest: gxShape): gxShape; C;
  54. FUNCTION GXGetLayoutGlyphs(layout: gxShape; VAR glyphs: gxGlyphcode; VAR positions: gxPoint; VAR advance: LONGINT; VAR tangents: gxPoint; VAR runCount: LONGINT; VAR styleRuns: INTEGER; VAR glyphStyles: gxStyle): LONGINT; C;
  55. FUNCTION GXHitTestLayout(layout: gxShape; {CONST}VAR hitDown: gxPoint; highlightType: gxHighlightType; VAR hitInfo: gxLayoutHitInfo; hitTrackingArea: gxShape): gxByteOffset; C;
  56. FUNCTION GXGetLayoutHighlight(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; highlightType: gxHighlightType; highlight: gxShape): gxShape; C;
  57. FUNCTION GXGetLayoutVisualHighlight(layout: gxShape; startOffset: gxByteOffset; startLeadingEdge: LONGINT; endOffset: gxByteOffset; endLeadingEdge: LONGINT; highlightType: gxHighlightType; highlight: gxShape): gxShape; C;
  58. FUNCTION GXGetLayoutCaret(layout: gxShape; offset: gxByteOffset; highlightType: gxHighlightType; caretType: gxCaretType; caret: gxShape): gxShape; C;
  59. FUNCTION GXGetLayoutBreakOffset(layout: gxShape; startOffset: gxByteOffset; lineWidth: Fixed; hyphenationCount: LONGINT; {CONST}VAR hyphenationPoints: gxByteOffset; VAR startIsStaked: BOOLEAN; VAR priorStake: gxByteOffset; VAR nextStake: gxByteOffset): gxByteOffset; C;
  60. FUNCTION GXGetLayoutRangeWidth(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; supplementaryText: gxShape): Fixed; C;
  61. FUNCTION GXNewLayoutFromRange(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; {CONST}VAR layoutOptions: gxLayoutOptions; supplementaryText: gxShape): gxShape; C;
  62. FUNCTION GXGetCaretAngleArea(layout: gxShape; {CONST}VAR hitPoint: gxPoint; highlightType: gxHighlightType; caretArea: gxShape; VAR returnedRise: INTEGER; VAR returnedRun: INTEGER): gxShape; C;
  63. PROCEDURE GXGetStyleBaselineDeltas(baseStyle: gxStyle; baseType: gxBaselineType; VAR returnedDeltas: gxBaselineDeltas); C;
  64. FUNCTION GXGetRightVisualOffset(layout: gxShape; currentOffset: gxByteOffset): gxByteOffset; C;
  65. FUNCTION GXGetLeftVisualOffset(layout: gxShape; currentOffset: gxByteOffset): gxByteOffset; C;
  66. PROCEDURE GXGetCompoundCharacterLimits(layout: gxShape; trial: gxByteOffset; VAR minOffset: gxByteOffset; VAR maxOffset: gxByteOffset; VAR onBoundary: BOOLEAN); C;
  67. PROCEDURE GXGetOffsetGlyphs(layout: gxShape; trial: gxByteOffset; leadingEdge: LONGINT; VAR offsetState: gxLayoutOffsetState; VAR firstGlyph: INTEGER; VAR secondGlyph: INTEGER); C;
  68. PROCEDURE GXGetGlyphOffset(layout: gxShape; trial: LONGINT; onLeftTop: LONGINT; VAR offset: gxByteOffset; VAR leadingEdge: BOOLEAN; VAR wasRealCharacter: BOOLEAN); C;
  69. PROCEDURE GXGetLayoutSpan(layout: gxShape; VAR lineAscent: Fixed; VAR lineDescent: Fixed); C;
  70. PROCEDURE GXSetLayoutSpan(layout: gxShape; lineAscent: Fixed; lineDescent: Fixed); C;
  71. FUNCTION GXGetLayoutJustificationGap(layout: gxShape): Fixed; C;
  72. PROCEDURE GXGetLayoutJustificationFactors(layout: gxShape; VAR constrainedFactors: Fixed; VAR unconstrainedFactors: Fixed); C;
  73. PROCEDURE GXSetStyleRunControls(target: gxStyle; {CONST}VAR runControls: gxRunControls); C;
  74. PROCEDURE GXSetStyleRunPriorityJustOverride(target: gxStyle; {CONST}VAR priorityJustificationOverride: gxPriorityJustificationOverride); C;
  75. PROCEDURE GXSetStyleRunGlyphJustOverrides(target: gxStyle; count: LONGINT; {CONST}VAR glyphJustificationOverrides: gxGlyphJustificationOverride); C;
  76. PROCEDURE GXSetStyleRunGlyphSubstitutions(target: gxStyle; count: LONGINT; {CONST}VAR glyphSubstitutions: gxGlyphSubstitution); C;
  77. PROCEDURE GXSetStyleRunFeatures(target: gxStyle; count: LONGINT; {CONST}VAR runFeatures: gxRunFeature); C;
  78. PROCEDURE GXSetStyleRunKerningAdjustments(target: gxStyle; count: LONGINT; {CONST}VAR kerningAdjustments: gxKerningAdjustment); C;
  79. PROCEDURE GXSetShapeRunControls(target: gxShape; {CONST}VAR runControls: gxRunControls); C;
  80. PROCEDURE GXSetShapeRunPriorityJustOverride(target: gxShape; {CONST}VAR priorityJustificationOverride: gxPriorityJustificationOverride); C;
  81. PROCEDURE GXSetShapeRunGlyphJustOverrides(target: gxShape; count: LONGINT; {CONST}VAR glyphJustificationOverrides: gxGlyphJustificationOverride); C;
  82. PROCEDURE GXSetShapeRunGlyphSubstitutions(target: gxShape; count: LONGINT; {CONST}VAR glyphSubstitutions: gxGlyphSubstitution); C;
  83. PROCEDURE GXSetShapeRunFeatures(target: gxShape; count: LONGINT; {CONST}VAR runFeatures: gxRunFeature); C;
  84. PROCEDURE GXSetShapeRunKerningAdjustments(target: gxShape; count: LONGINT; {CONST}VAR kerningAdjustments: gxKerningAdjustment); C;
  85. FUNCTION GXGetStyleRunControls(source: gxStyle; VAR runControls: gxRunControls): LONGINT; C;
  86. FUNCTION GXGetStyleRunPriorityJustOverride(source: gxStyle; VAR priorityJustificationOverride: gxPriorityJustificationOverride): LONGINT; C;
  87. FUNCTION GXGetStyleRunGlyphJustOverrides(source: gxStyle; VAR glyphJustificationOverrides: gxGlyphJustificationOverride): LONGINT; C;
  88. FUNCTION GXGetStyleRunGlyphSubstitutions(source: gxStyle; VAR glyphSubstitutions: gxGlyphSubstitution): LONGINT; C;
  89. FUNCTION GXGetStyleRunFeatures(source: gxStyle; VAR runFeatures: gxRunFeature): LONGINT; C;
  90. FUNCTION GXGetStyleRunKerningAdjustments(source: gxStyle; VAR kerningAdjustments: gxKerningAdjustment): LONGINT; C;
  91. FUNCTION GXGetShapeRunControls(source: gxShape; VAR runControls: gxRunControls): LONGINT; C;
  92. FUNCTION GXGetShapeRunPriorityJustOverride(source: gxShape; VAR priorityJustificationOverride: gxPriorityJustificationOverride): LONGINT; C;
  93. FUNCTION GXGetShapeRunGlyphJustOverrides(source: gxShape; VAR glyphJustificationOverrides: gxGlyphJustificationOverride): LONGINT; C;
  94. FUNCTION GXGetShapeRunGlyphSubstitutions(source: gxShape; VAR glyphSubstitutions: gxGlyphSubstitution): LONGINT; C;
  95. FUNCTION GXGetShapeRunFeatures(source: gxShape; VAR runFeatures: gxRunFeature): LONGINT; C;
  96. FUNCTION GXGetShapeRunKerningAdjustments(source: gxShape; VAR kerningAdjustments: gxKerningAdjustment): LONGINT; C;
  97. {$ENDC}
  98. {$ALIGN RESET}
  99. {$POP}
  100.  
  101. {$SETC UsingIncludes := GXLayoutIncludes}
  102.  
  103. {$ENDC} {__GXLAYOUT__}
  104.  
  105. {$IFC NOT UsingIncludes}
  106.  END.
  107. {$ENDC}
  108.